package com.example.pengxiangedupay.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.pengxiangedupay.dao.StuBaseInfoDao;
import com.example.pengxiangedupay.entity.StuBaseInfoEntity;
import com.example.pengxiangedupay.service.StuBaseInfoService;
import com.example.pengxiangedupay.vo.DeptDescriptionVo;
import com.example.pengxiangedupay.vo.ReduceInfo;
import com.example.pengxiangedupay.vo.StuInfoVo;
import org.springframework.stereotype.Service;

@Service
public class StuBaseInfoServiceImpl extends ServiceImpl<StuBaseInfoDao, StuBaseInfoEntity> implements StuBaseInfoService {
    @Override
    public StuInfoVo getStuInfo(Long id) {
        StuInfoVo stuInfoVo = baseMapper.getStuInfoVo(id);
        return stuInfoVo;
    }
    //通过学生id获取其部门班级信息
    @Override
    public DeptDescriptionVo getDeptById(Long studentId) {
        DeptDescriptionVo deptDescription = baseMapper.getDeptById(studentId);
        return deptDescription;
    }
    //通过学生id获取其减免类型信息
    public ReduceInfo getReduceById(Long studentId){
        ReduceInfo reduceInfo = baseMapper.getReduceById(studentId);
        return reduceInfo;
    }

}
